import request from '@/utils/request'
/**
 * 查询-分页查询安灯触发主数据
 * @param getPush
 */
export function andonList() {
  return request({
    url: `/andon/trigger/andonList`,
    method: 'post'
  })
}

export function andonTrigger(data) {
  return request({
    url: `/andon/trigger/andonTrigger`,
    method: 'post',
    data: data
  })
}

export function uploadPicture(data) {
  return request({
    url: `/andon/trigger/uploadPicture`,
    headers: { 'Content-Type': 'multipart/form-data' },
    method: 'post',
    data: data
  })
}

export function getRecord(data) {
  return request({
    url: `/andon/trigger/getRecord`,
    method: 'get',
    params: data
  })
}
